<template>
	<view @click="handleClick">
		<slot></slot>
	</view>
</template>

<script>
	export default {
		props: {
			list: Array,
			index: Number
		},
		mounted() {
			
		},
		data() {
			return {
				
			}
		},
		methods: {
			handleClick(){
				
				//1.将传过来的数据缓存下来  2.实现点击跳转
				getApp().globalData.imageList = this.list
				getApp().globalData.imgIndex = this.index
				//页面跳转
				uni.navigateTo({
					url: "/pages/imgDetail/imgDetail"
				})
			}
		}
	}
</script>

<style>

</style>
